var pageii = null;
var grid = null;
$(function () {
    var addrid = $("#addrid").val();
    grid = lyGrid({
        pagId: 'paging',
        l_column: [{
            colkey: "name",
            name: "姓名",
            width: "50px"
        }, {
            colkey: "province",
            name: "省",
            width: "50px"
        }, {
            colkey: "city",
            name: "市",
            width: "50px"
        },{
            colkey: "county",
            name: "区",
            width: "50px"
        },{
            colkey: "street",
            name: "街道",
            width: "200px"
        },  {
            colkey: "phone",
            name: "手机号",
            width: "100px"
        }],
        jsonUrl: rootPath + '/store/order/addrlist.shtml?addrid='+addrid,
        dymCol: true,
        checkbox: true,
        serNumber: true
    });

    $("#search").click("click", function () { // 绑定查询按扭
        var searchParams = $("#searchForm").serializeJson(); // 初始化传参数
        grid.setOptions({
            data: searchParams
        });
    });
});